class ChangeItemRecommends < ActiveRecord::Migration
  def self.up
  	rename_column :item_recommends, :item_id, :relation_id
  	rename_column :item_recommends, :item_name, :name
  	remove_column :item_recommends, :item_pic
  	rename_column :item_recommends, :remd_type, :recommned_subject_id
  	add_column :item_recommends, :flag, :integer, :limit => 4, :default => 0
  end

  def self.down
  end
end
